<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ro" lang="ro">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/images/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-20596921-1']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
    <!--[if IE 6]>
    <script src="/js/DD_belatedPNG_0.0.8a-min.js"></script>
    <script>
       DD_belatedPNG.fix('.logo, .logo-image, .tip, .facebook-follow-image, .twitter-follow-image, .offer-discount-percent, .offer-go-to-offer-image');
     </script>
    <![endif]-->
    <?php if(has_slot('fb_like')): ?>
      <?php include_slot('fb_like') ?>
    <?php endif; ?>
  </head>
  <body>
    <div class="header-container">
      <div class="header clearfix">
        <h1><a href="<?php echo url_for('@city?city_name='.$sf_request->getParameter('city_name', 'all').'&category_name=all') ?>">Reduceri & Cadouri</a></h1>
        <?php if(has_slot('site_subtitle')): ?>
          <?php include_slot('site_subtitle') ?>
        <?php else: ?>
        <h2>
          Cele mai mari <strong>reduceri din Romania</strong> adunate intr-un singur loc!
          <br />
          Alege si fa-ti un <strong>cadou</strong> tie sau cuiva drag!
          <div class="tip"></div>
        </h2>
        <?php endif; ?>
        <div class="follow">
          <a href="http://www.facebook.com/pages/Reduceri-Cadouri/182974521721759" id="facebook-icon-button" target="_blank" title="Urmareste-ne pe Facebook"><img src="/images/social-icons/64x64/facebook.png" class="facebook-follow-image" alt="Urmareste-ne pe Facebook" /></a>
          <a href="http://twitter.com/reducericadouri" target="_blank" id="twitter-icon-button" title="Urmareste-ne pe Twitter"><img src="/images/social-icons/64x64/twitter.png" class="twitter-follow-image" alt="Urmareste-ne pe Twitter" /></a>
        </div>
      </div>
      <?php include_component('index', 'menu') ?>
    </div>
    <div class="content clearfix">
      <div class="logo"><img class="logo-image" src="/images/logo2.png" /></div>
      <div class="left-side">
        <?php if($notice = $sf_user->getFlash('notice')): ?>
          <div class="notice"><?php echo $notice ?></div>
        <?php endif; ?>
        <?php // if(in_array(@$_SERVER['REMOTE_ADDR'], array('93.113.185.157'))): ?>
          <div class="fb-like clearfix">
            <div class="fb-button">
              <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=132672426807598&amp;xfbml=1"></script><fb:like href="http://www.facebook.com/pages/Reduceri-Cadouri/182974521721759" send="false" layout="button_count" width="75" show_faces="false" font=""></fb:like>
            </div>
            Da-ne "Like" pe Facebook si castiga un Card Cadou de la eMAG in valoare de 100 RON!
            <br />
            <span>* Castigatorul va fi ales prin tragere la sorti dupa atingerea numarului de 1.000 de fani.</span>
          </div>
        <?php // endif; ?>
        <?php echo $sf_content ?>
      </div>
      <div class="right-side">
        <?php include_component('index', 'rightSide') ?>
        <?php include_component('index', 'rightSideSites') ?>
        <script type="text/javascript">
          $(function() {
            $('#city-<?php echo $sf_request->getParameter('city_name') ?>').addClass('active');
            $('#category-<?php echo $sf_request->getParameter('category_name') ?>').addClass('active');
            $('#site-<?php echo $sf_request->getParameter('site_id') ?>').addClass('active');
          });
        </script>
        <?php include_component('index', 'searchKeywords') ?>
      </div>
    </div>
    <div class="footer">
      <a href="<?php echo url_for('@contact') ?>">Contact</a>
    </div>
    <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
  </body>
</html>
	